textview: Set line height from markup
authorMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2021 17:39:34 +0000 (13:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Aug 2021 19:15:50 +0000 (15:15 -0400)
Note that we ignore the absolute-line-height
attribute for now.

gtk/gtktextbuffer.c

index 2101776e9588713bd5020ecf9df9f80a58842ffc..a611e48a91d3e98071e4eeab9cc67af6eb7eb361 100644 (file)
@@ -4691,6 +4691,9 @@ insert_tags_for_attributes (GtkTextBuffer     *buffer,
 
 #if PANGO_VERSION_CHECK(1, 49, 0)
         case PANGO_ATTR_LINE_HEIGHT:
+          FLOAT_ATTR (line_height);
+          break;
+
         case PANGO_ATTR_ABSOLUTE_LINE_HEIGHT:
           break;
 #endif